import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/home/index.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    // 首页路由
    name: 'home',
    components: {
      main: HomeView,
    }, children:[{
      path:'homedetail/:id',
      name:'homedetail',
      components:{
         ZrzV:() => import(/* webpackChunkName: "home" */ '../views/home/HomeDetail.vue')
      }
    }]
  },
  {
    // 登录注册路由
    path: '/user/:id',
    name: 'user',
    components:{
      main:() => import(/* webpackChunkName: "user" */ '../views/user/index.vue')
    } ,
  },
  {
    // 分类路由
    path: '/kind/:id',
    name: 'kind',
    components: {
      main: () => import(/* webpackChunkName: "kind" */ '../views/kind/index.vue')
    }
  },
  {
    //收藏路由
    path: '/coll/:id',
    name: 'coll',
    components:{
		main:() => import(/* webpackChunkName: "coll" */ '../views/coll/index.vue')
    
	} 
  },
  {
    // 个人中心路由
    path: '/person',
    name: 'person',
    components: {
      main: () => import(/* webpackChunkName: "person" */ '../views/person/index.vue'),
    },
    children: [{
      path: 'hot/01',
      name: "hot01",
      component: () => import(/* webpackChunkName: "person" */ '../views/person/Hot01.vue')
    }, {
      path: 'hot/02',
      name: "hot02",
      component: () => import(/* webpackChunkName: "person" */ '../views/person/Hot02.vue')
    }, {
      path: 'hot/03',
      name: "hot03",
      component: () => import(/* webpackChunkName: "person" */ '../views/person/Hot03.vue')
    }, {
      path: 'hot/04',
      name: "hot04",
      component: () => import(/* webpackChunkName: "person" */ '../views/person/Hot04.vue')
    }, {
      path: 'hot/05',
      name: "hot05",
      component: () => import(/* webpackChunkName: "person" */ '../views/person/Hot05.vue')
    }, {
      path: 'hot/06',
      name: "hot06",
      component: () => import(/* webpackChunkName: "person" */ '../views/person/Hot06.vue')
    }, {
      path: 'hot/07',
      name: "hot07",
      component: () => import(/* webpackChunkName: "person" */ '../views/person/Hot07.vue')
    }, {
      path: 'hot/08',
      name: "hot08",
      component: () => import(/* webpackChunkName: "person" */ '../views/person/Hot08.vue')
    }, {
      path: 'hot/09',
      name: "hot09",
      component: () => import(/* webpackChunkName: "person" */ '../views/person/Hot09.vue')
    }, {
      path: 'hot/10',
      name: "hot10",
      component: () => import(/* webpackChunkName: "person" */ '../views/person/Hot10.vue')
    }, {
      path: 'hot/11',
      name: "hot11",
      component: () => import(/* webpackChunkName: "person" */ '../views/person/Hot11.vue')
    },]
  }
]

const router = new VueRouter({
  routes
})





export default router
